import QtQuick 2.7
import QtQuick.Controls 2.0

Page {
    id: loginPage
    
    LoginPageForm {
        anchors.fill: parent
        
        loginButton.onClicked: {
            console.log("Login button clicked")
            console.log("Username: " + usernameField.text)
            console.log("Password: " + passwordField.text)
            console.log("Remember me: " + rememberCheckbox.checked)
            
            // Here you would typically validate the credentials and perform the login
            // For now, we'll just simulate a successful login
            if (usernameField.text.length > 0 && passwordField.text.length > 0) {
                // Successful login logic would go here
                console.log("Login successful")
            } else {
                console.log("Please enter username and password")
            }
        }
    }
}
